Optimal. Leaf size=161 \[ -\frac {29 x}{128 a^3}-\frac {4 \cos ^3(c+d x)}{3 a^3 d}+\frac {7 \cos ^5(c+d x)}{5 a^3 d}-\frac {3 \cos ^7(c+d x)}{7 a^3 d}-\frac {29 \cos (c+d x) \sin (c+d x)}{128 a^3 d}+\frac {29 \cos ^3(c+d x) \sin (c+d x)}{64 a^3 d}+\frac {29 \cos ^3(c+d x) \sin ^3(c+d x)}{48 a^3 d}+\frac {\cos ^3(c+d x) \sin ^5(c+d x)}{8 a^3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.33, antiderivative size = 161, normalized size of antiderivative = 1.00, number of steps
used = 18, number of rules used = 8, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {2954, 2952,
2645, 14, 2648, 2715, 8, 276} \begin {gather*} -\frac {3 \cos ^7(c+d x)}{7 a^3 d}+\frac {7 \cos ^5(c+d x)}{5 a^3 d}-\frac {4 \cos ^3(c+d x)}{3 a^3 d}+\frac {\sin ^5(c+d x) \cos ^3(c+d x)}{8 a^3 d}+\frac {29 \sin ^3(c+d x) \cos ^3(c+d x)}{48 a^3 d}+\frac {29 \sin (c+d x) \cos ^3(c+d x)}{64 a^3 d}-\frac {29 \sin (c+d x) \cos (c+d x)}{128 a^3 d}-\frac {29 x}{128 a^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 14
Rule 276
Rule 2645
Rule 2648
Rule 2715
Rule 2952
Rule 2954
Rubi steps
\begin {align*} \int \frac {\cos ^8(c+d x) \sin ^3(c+d x)}{(a+a \sin (c+d x))^3} \, dx &=\frac {\int \cos ^2(c+d x) \sin ^3(c+d x) (a-a \sin (c+d x))^3 \, dx}{a^6}\\ &=\frac {\int \left (a^3 \cos ^2(c+d x) \sin ^3(c+d x)-3 a^3 \cos ^2(c+d x) \sin ^4(c+d x)+3 a^3 \cos ^2(c+d x) \sin ^5(c+d x)-a^3 \cos ^2(c+d x) \sin ^6(c+d x)\right ) \, dx}{a^6}\\ &=\frac {\int \cos ^2(c+d x) \sin ^3(c+d x) \, dx}{a^3}-\frac {\int \cos ^2(c+d x) \sin ^6(c+d x) \, dx}{a^3}-\frac {3 \int \cos ^2(c+d x) \sin ^4(c+d x) \, dx}{a^3}+\frac {3 \int \cos ^2(c+d x) \sin ^5(c+d x) \, dx}{a^3}\\ &=\frac {\cos ^3(c+d x) \sin ^3(c+d x)}{2 a^3 d}+\frac {\cos ^3(c+d x) \sin ^5(c+d x)}{8 a^3 d}-\frac {5 \int \cos ^2(c+d x) \sin ^4(c+d x) \, dx}{8 a^3}-\frac {3 \int \cos ^2(c+d x) \sin ^2(c+d x) \, dx}{2 a^3}-\frac {\text {Subst}\left (\int x^2 \left (1-x^2\right ) \, dx,x,\cos (c+d x)\right )}{a^3 d}-\frac {3 \text {Subst}\left (\int x^2 \left (1-x^2\right )^2 \, dx,x,\cos (c+d x)\right )}{a^3 d}\\ &=\frac {3 \cos ^3(c+d x) \sin (c+d x)}{8 a^3 d}+\frac {29 \cos ^3(c+d x) \sin ^3(c+d x)}{48 a^3 d}+\frac {\cos ^3(c+d x) \sin ^5(c+d x)}{8 a^3 d}-\frac {5 \int \cos ^2(c+d x) \sin ^2(c+d x) \, dx}{16 a^3}-\frac {3 \int \cos ^2(c+d x) \, dx}{8 a^3}-\frac {\text {Subst}\left (\int \left (x^2-x^4\right ) \, dx,x,\cos (c+d x)\right )}{a^3 d}-\frac {3 \text {Subst}\left (\int \left (x^2-2 x^4+x^6\right ) \, dx,x,\cos (c+d x)\right )}{a^3 d}\\ &=-\frac {4 \cos ^3(c+d x)}{3 a^3 d}+\frac {7 \cos ^5(c+d x)}{5 a^3 d}-\frac {3 \cos ^7(c+d x)}{7 a^3 d}-\frac {3 \cos (c+d x) \sin (c+d x)}{16 a^3 d}+\frac {29 \cos ^3(c+d x) \sin (c+d x)}{64 a^3 d}+\frac {29 \cos ^3(c+d x) \sin ^3(c+d x)}{48 a^3 d}+\frac {\cos ^3(c+d x) \sin ^5(c+d x)}{8 a^3 d}-\frac {5 \int \cos ^2(c+d x) \, dx}{64 a^3}-\frac {3 \int 1 \, dx}{16 a^3}\\ &=-\frac {3 x}{16 a^3}-\frac {4 \cos ^3(c+d x)}{3 a^3 d}+\frac {7 \cos ^5(c+d x)}{5 a^3 d}-\frac {3 \cos ^7(c+d x)}{7 a^3 d}-\frac {29 \cos (c+d x) \sin (c+d x)}{128 a^3 d}+\frac {29 \cos ^3(c+d x) \sin (c+d x)}{64 a^3 d}+\frac {29 \cos ^3(c+d x) \sin ^3(c+d x)}{48 a^3 d}+\frac {\cos ^3(c+d x) \sin ^5(c+d x)}{8 a^3 d}-\frac {5 \int 1 \, dx}{128 a^3}\\ &=-\frac {29 x}{128 a^3}-\frac {4 \cos ^3(c+d x)}{3 a^3 d}+\frac {7 \cos ^5(c+d x)}{5 a^3 d}-\frac {3 \cos ^7(c+d x)}{7 a^3 d}-\frac {29 \cos (c+d x) \sin (c+d x)}{128 a^3 d}+\frac {29 \cos ^3(c+d x) \sin (c+d x)}{64 a^3 d}+\frac {29 \cos ^3(c+d x) \sin ^3(c+d x)}{48 a^3 d}+\frac {\cos ^3(c+d x) \sin ^5(c+d x)}{8 a^3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(482\) vs. \(2(161)=322\).
time = 3.35, size = 482, normalized size = 2.99 \begin {gather*} \frac {84 (-7+12870 c-580 d x) \cos \left (\frac {c}{2}\right )-38640 \cos \left (\frac {c}{2}+d x\right )-38640 \cos \left (\frac {3 c}{2}+d x\right )+6720 \cos \left (\frac {3 c}{2}+2 d x\right )-6720 \cos \left (\frac {5 c}{2}+2 d x\right )-3920 \cos \left (\frac {5 c}{2}+3 d x\right )-3920 \cos \left (\frac {7 c}{2}+3 d x\right )+5880 \cos \left (\frac {7 c}{2}+4 d x\right )-5880 \cos \left (\frac {9 c}{2}+4 d x\right )+4368 \cos \left (\frac {9 c}{2}+5 d x\right )+4368 \cos \left (\frac {11 c}{2}+5 d x\right )-2240 \cos \left (\frac {11 c}{2}+6 d x\right )+2240 \cos \left (\frac {13 c}{2}+6 d x\right )-720 \cos \left (\frac {13 c}{2}+7 d x\right )-720 \cos \left (\frac {15 c}{2}+7 d x\right )+105 \cos \left (\frac {15 c}{2}+8 d x\right )-105 \cos \left (\frac {17 c}{2}+8 d x\right )-998928 \sin \left (\frac {c}{2}\right )+1081080 c \sin \left (\frac {c}{2}\right )-48720 d x \sin \left (\frac {c}{2}\right )+38640 \sin \left (\frac {c}{2}+d x\right )-38640 \sin \left (\frac {3 c}{2}+d x\right )+6720 \sin \left (\frac {3 c}{2}+2 d x\right )+6720 \sin \left (\frac {5 c}{2}+2 d x\right )+3920 \sin \left (\frac {5 c}{2}+3 d x\right )-3920 \sin \left (\frac {7 c}{2}+3 d x\right )+5880 \sin \left (\frac {7 c}{2}+4 d x\right )+5880 \sin \left (\frac {9 c}{2}+4 d x\right )-4368 \sin \left (\frac {9 c}{2}+5 d x\right )+4368 \sin \left (\frac {11 c}{2}+5 d x\right )-2240 \sin \left (\frac {11 c}{2}+6 d x\right )-2240 \sin \left (\frac {13 c}{2}+6 d x\right )+720 \sin \left (\frac {13 c}{2}+7 d x\right )-720 \sin \left (\frac {15 c}{2}+7 d x\right )+105 \sin \left (\frac {15 c}{2}+8 d x\right )+105 \sin \left (\frac {17 c}{2}+8 d x\right )}{215040 a^3 d \left (\cos \left (\frac {c}{2}\right )+\sin \left (\frac {c}{2}\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.17, size = 220, normalized size = 1.37
method | result | size |
risch | \(-\frac {29 x}{128 a^{3}}-\frac {23 \cos \left (d x +c \right )}{64 a^{3} d}+\frac {\sin \left (8 d x +8 c \right )}{1024 d \,a^{3}}-\frac {3 \cos \left (7 d x +7 c \right )}{448 d \,a^{3}}-\frac {\sin \left (6 d x +6 c \right )}{48 d \,a^{3}}+\frac {13 \cos \left (5 d x +5 c \right )}{320 d \,a^{3}}+\frac {7 \sin \left (4 d x +4 c \right )}{128 d \,a^{3}}-\frac {7 \cos \left (3 d x +3 c \right )}{192 d \,a^{3}}+\frac {\sin \left (2 d x +2 c \right )}{16 d \,a^{3}}\) | \(141\) |
derivativedivides | \(\frac {\frac {16 \left (-\frac {19}{420}+\frac {29 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{1024}-\frac {38 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{105}+\frac {667 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {61 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{60}-\frac {1465 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}+\frac {2 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15}-\frac {5117 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {19 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12}+\frac {5117 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {8 \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+\frac {1465 \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {\left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4}-\frac {667 \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {29 \left (\tan ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{1024}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{8}}-\frac {29 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64}}{d \,a^{3}}\) | \(220\) |
default | \(\frac {\frac {16 \left (-\frac {19}{420}+\frac {29 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{1024}-\frac {38 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{105}+\frac {667 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {61 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{60}-\frac {1465 \left (\tan ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}+\frac {2 \left (\tan ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15}-\frac {5117 \left (\tan ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {19 \left (\tan ^{8}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{12}+\frac {5117 \left (\tan ^{9}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {8 \left (\tan ^{10}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}+\frac {1465 \left (\tan ^{11}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {\left (\tan ^{12}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{4}-\frac {667 \left (\tan ^{13}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3072}-\frac {29 \left (\tan ^{15}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{1024}\right )}{\left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{8}}-\frac {29 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{64}}{d \,a^{3}}\) | \(220\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 499 vs.
\(2 (145) = 290\).
time = 0.50, size = 499, normalized size = 3.10 \begin {gather*} \frac {\frac {\frac {3045 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {38912 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {23345 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {109312 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} - \frac {51275 \, \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {14336 \, \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} - \frac {179095 \, \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} - \frac {170240 \, \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} + \frac {179095 \, \sin \left (d x + c\right )^{9}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{9}} - \frac {286720 \, \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} + \frac {51275 \, \sin \left (d x + c\right )^{11}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{11}} - \frac {26880 \, \sin \left (d x + c\right )^{12}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{12}} - \frac {23345 \, \sin \left (d x + c\right )^{13}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{13}} - \frac {3045 \, \sin \left (d x + c\right )^{15}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{15}} - 4864}{a^{3} + \frac {8 \, a^{3} \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {28 \, a^{3} \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + \frac {56 \, a^{3} \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} + \frac {70 \, a^{3} \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}} + \frac {56 \, a^{3} \sin \left (d x + c\right )^{10}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{10}} + \frac {28 \, a^{3} \sin \left (d x + c\right )^{12}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{12}} + \frac {8 \, a^{3} \sin \left (d x + c\right )^{14}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{14}} + \frac {a^{3} \sin \left (d x + c\right )^{16}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{16}}} - \frac {3045 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a^{3}}}{6720 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 90, normalized size = 0.56 \begin {gather*} -\frac {5760 \, \cos \left (d x + c\right )^{7} - 18816 \, \cos \left (d x + c\right )^{5} + 17920 \, \cos \left (d x + c\right )^{3} + 3045 \, d x - 35 \, {\left (48 \, \cos \left (d x + c\right )^{7} - 328 \, \cos \left (d x + c\right )^{5} + 454 \, \cos \left (d x + c\right )^{3} - 87 \, \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{13440 \, a^{3} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 218, normalized size = 1.35 \begin {gather*} -\frac {\frac {3045 \, {\left (d x + c\right )}}{a^{3}} + \frac {2 \, {\left (3045 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{15} + 23345 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{13} + 26880 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{12} - 51275 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{11} + 286720 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{10} - 179095 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{9} + 170240 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{8} + 179095 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{7} - 14336 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{6} + 51275 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{5} + 109312 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} - 23345 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 38912 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 3045 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 4864\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{8} a^{3}}}{13440 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 11.94, size = 212, normalized size = 1.32 \begin {gather*} -\frac {29\,x}{128\,a^3}-\frac {\frac {29\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{15}}{64}+\frac {667\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{13}}{192}+4\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{12}-\frac {1465\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{11}}{192}+\frac {128\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^{10}}{3}-\frac {5117\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^9}{192}+\frac {76\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^8}{3}+\frac {5117\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^7}{192}-\frac {32\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6}{15}+\frac {1465\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5}{192}+\frac {244\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{15}-\frac {667\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3}{192}+\frac {608\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2}{105}-\frac {29\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}{64}+\frac {76}{105}}{a^3\,d\,{\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}^8} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________